import Vue from 'vue'
import VueRouter from 'vue-router'



Vue.use(VueRouter)

/*const routes = [
  {
    path:'/',
    name:'login',
    component:()=>import('../components/else/Login.vue')
  },
  {
    path:'/login',
    name:'login',
    component:()=>import('../components/else/Login.vue')
  },
     {
       path:'/main',
       name:'main',
       component:()=>import('../views/Main.vue'),
       children:[
        
         {
           path:'/',
           component:()=>import('../views/Home.vue')
         },
         {
          path:'/home',
          component:()=>import('../views/Home.vue')
        },
         {
          path:'/teacher',
          component:()=>import('../views/Teacher.vue')
         },
         {
           path:'/test',
           component:()=>import('../views/text.vue')
         },
         {
          path:'/couresimport',
          component:()=>import('../views/CouresImport.vue')
         }
       ]
     },

   {
     path:'/regfrom',///regfrom
     component:()=>import('../components/else/RegFrom.vue')
   }

]*/

//======================================================
const myVueRouter = new VueRouter({
  
    routes:[
     {
      path:'/',
      name:'login',
      component:()=>import('../components/else/Login.vue')
      },
    {
      path:'/login',
      name:'login',
      component:()=>import('../components/else/Login.vue')
    },
       {
         path:'/main',
         name:'main',
         component:()=>import('../views/Main.vue'),
         children:[
          
           {
             path:'/',
             component:()=>import('../views/Home.vue')
           },
           {
            path:'/home',
            component:()=>import('../views/Home.vue')
          },
           {
            path:'/teacher',
            component:()=>import('../views/Teacher.vue')
           },
           {
             path:'/test',
             component:()=>import('../views/text.vue')
           },
           {
            path:'/couresimport',
            component:()=>import('../views/CouresImport.vue')
           },
           {
            path:'/classroom',
            component:()=>import('../views/ClassRoom.vue')
           },
           {
            path:'/nowcoures',
            component:()=>import('../views/NowCourse.vue')
           },
           {
            path:'/changcourse',
            component:()=>import('../views/ChangCourse.vue')
           },
           {
            path:'/admin',
            component:()=>import('../components/else/Admin.vue')
          },
          {
            path:'/lookadmin',
            component:()=>import('../components/else/LookAdmin.vue')
          },
          {
            path:'/roomadmin',
            component:()=>import('../views/RoomAdmin.vue')
          },
          {
            path:'/excelexport',
            component:()=>import('../views/ExcelExport.vue')
          },
          {
            path:'/journal',
            component:()=>import('../views/Journal.vue')
          },
          {
            path:'/buqian',
            component:()=>import('../views/BuQian.vue')
          }
         ]
       },
 
       {
        path:'/regfrom',///regfrom
        name:'regfrom',
        component:()=>import('../components/else/RegFrom.vue')
      },
      {
        path:'/showcourse',
        name:'showcourse',
        component:()=>import('../components/else/ShowNowCourse.vue')
      },
      {
        path:'/showweekcourse',
        name:'showweekcourse',
        component:()=>import('../components/else/ShowWeekCourse.vue')
      },
      {
        path:'/showcourse2',
        name:'showcourse2',
        component:()=>import('../components/else/ShowNowCourse2.vue')
      },
      {
        path:'/teacherlogin',
        name:'teacherlogin',
        component:()=>import('../components/teacher/TeacherLogin.vue')
      },
      {
        path:'/teachershowno',
        name:'teachershowno',
        component:()=>import('../components/teacher/TeacherShowNo.vue')
      },
      {
        path:'/regfrom2',
        name:'regfrom2',
        component:()=>import('../components/else/RegFrom2.vue')
      }
   
  
    ],
    mode:'history'
})
//======================================================


export default myVueRouter;